package com.aptemo.webetek.client.commands.impl;

import com.aptemo.webetek.client.commands.Action;
import com.aptemo.webetek.shared.StatisticsBean;

public class GetStatisticsAction implements Action<StatisticsBean>
{
	public enum EStatsTarget
	{
		EUSER, ETEAM, EALL
	}

	public enum EStatsPeriod
	{
		EMONTH, EWEEK, EYEAR, EALLTIME
	}

	private EStatsTarget	target;
	private EStatsPeriod	period;
	private String			teamId;

	protected GetStatisticsAction()
	{
	}

	public GetStatisticsAction(EStatsTarget target, EStatsPeriod period)
	{
		this(target, period, "");
	}
	
	public GetStatisticsAction(EStatsTarget target, EStatsPeriod period, String teamid)
	{
		this.target = target;
		this.period = period;
		this.teamId = teamid;
	}

	public EStatsTarget getTarget()
	{
		return target;
	}

	public void setTarget(EStatsTarget target)
	{
		this.target = target;
	}

	public EStatsPeriod getPeriod()
	{
		return period;
	}

	public void setPeriod(EStatsPeriod period)
	{
		this.period = period;
	}

	public String getTeamId()
	{
		return teamId;
	}

	public void setTeamId(String teamId)
	{
		this.teamId = teamId;
	}
}
